www.gusucode.com > 24Beta 虚拟主机版 1.0.0 Beta源码程序 > 24Beta 虚拟主机版 1.0.0 Beta源码程序/24Beta-1.0.0-vhost/protected/modules/admin/views/comment/list.php

    <table border="0" cellspacing="1" cellpadding="0" width="100%" class="list-tbl">
	<tr>
		<th width="50">ID号</th>
		<th width="50">支持</th>
		<th width="50">反对</th>
		<th width="50"><?php echo param('popularWord');?></th>
		<th width="50">举报</th>
		<th width="125">评论人</th>
		<th width="125">时间</th>
		<th width="30">删除</th>
		<th width="30">显示</th>
		<th width="30">推荐</th>
		<th><a href="javascript:void(0);" class="all-expand-collapse">展开/收起</a></th>
	</tr>
	<?php foreach ($comments as $c):?>
	<tr class="bg-dark">
		<td class="ac bg-dark"><?php echo $c->id;?></td>
		<td class="ac"><?php echo $c->support_nums;?></td>
		<td class="ac"><?php echo $c->oppose_nums;?></td>
		<td class="ac"><?php echo $c->neutral_nums;?></td>
		<td class="ac"><?php echo $c->report_nums;?></td>
		<td class="ac"><?php echo $c->post_user;?></td>
		<td><?php echo CTimestamp::formatDate('Y-m-d H:i', $c->post_time);?></td>
		<td class="ac state"><?php echo l(CHtml::image(bu('resource/admin/images/del-icon.gif')), url('admin/comment/delete', array('cid'=>$c->id)), array('class'=>'delete'));?></td>
		<td class="ac state"><?php echo l(CHtml::image(bu('resource/admin/images/state' . $c->isshow . '.gif')), url('admin/ajax/commentshow', array('cid'=>$c->id)), array('class'=>'changestate'));?></td>
		<td class="ac state"><?php echo l(CHtml::image(bu('resource/admin/images/state' . $c->recommend . '.gif')), url('admin/ajax/commentrecommend', array('cid'=>$c->id)), array('class'=>'changestate'));?></td>
		<td class="expand-collapse">点击查看评论内容↓</td>
	</tr>
	<tr class="hide comment-content"><td colspan="11"><?php echo $c->content;?></td></tr>
	<?php
endforeach;?>
</table>

<div class="pages fr">
<?php $this->widget('CLinkPager', array(
	'pages' => $pages,
    'header' => '翻页',
    'firstPageLabel' => '首页',
    'lastPageLabel' => '末页',
    'nextPageLabel' => '下一页',
    'prevPageLabel' => '上一页',
));?>
</div>

<?php echo CHtml::scriptFile(bu('resource/admin/js/admincp.js'));?>
<script type="text/javascript">
/*<![CDATA[*/
$(function(){
	$('.all-expand-collapse').toggle(
		function(){$('.comment-content').show();},
		function(){$('.comment-content').hide()}
	);
	$('.expand-collapse').click(function(){
		$(this).parent().next('tr').toggle();
	});
	$('.delete').click(deleteComment);
	$('.list-tbl td.state').mouseover(trMouseOver);
	$('.list-tbl td.state').mouseout(trMouseOut);
	$('.changestate').click(changeState);
});
/*]]>*/
</script>